const configUrl = require('@/utils/configUrl.js');
import mixinMethods from '@/utils/mixinMethods';

const install = function(Vue, opts = {}) {
  Vue.mixin({
    computed: {
      uploadImgUrl() {
        return process.env.VUE_APP_BASE_API + configUrl.LINK.ImagesUrl;
      },
      shulanJjrGatewayUrl() {
        return process.env.VUE_APP_BASE_API + configUrl.LINK.shareUrl;
      }
    },
    methods: {
      ...mixinMethods
    }
  });
};

export default {
  install
};
